package com.salesmanager.web.entity.ad;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Liutong on 10/17/15.
 * 广告位实体
 */
public class AdPositionEntity {

    private List<Ad> banners = new ArrayList<Ad>();
    private List<Ad> bannerRight = new ArrayList<Ad>();
    private List<Ad> bannerBottom = new ArrayList<Ad>();
    private List<Ad> brandLeft = new ArrayList<Ad>();
    private List<Ad> brandRight = new ArrayList<Ad>();

    public void addBannners(Ad ad){
        banners.add(ad);
    }

    public void addBannerRight(Ad ad){
        bannerRight.add(ad);
    }

    public void addBannerBottom(Ad ad){
        bannerBottom.add(ad);
    }

    public void addBrandLeft(Ad ad){
        brandLeft.add(ad);
    }

    public void addBrandRight(Ad ad){
        brandRight.add(ad);
    }


    public List<Ad> getBanners() {
        return banners;
    }
    public void setBanners(List<Ad> banners) {
        this.banners = banners;
    }

    public List<Ad> getBannerRight() {
        return bannerRight;
    }

    public void setBannerRight(List<Ad> bannerRight) {
        this.bannerRight = bannerRight;
    }

    public List<Ad> getBannerBottom() {
        return bannerBottom;
    }

    public void setBannerBottom(List<Ad> bannerBottom) {
        this.bannerBottom = bannerBottom;
    }

    public List<Ad> getBrandLeft() {
        return brandLeft;
    }

    public void setBrandLeft(List<Ad> brandLeft) {
        this.brandLeft = brandLeft;
    }

    public List<Ad> getBrandRight() {
        return brandRight;
    }

    public void setBrandRight(List<Ad> brandRight) {
        this.brandRight = brandRight;
    }

    public class Ad{
        private Long id;
        private String title;
        private String imageUrl;
        private String href;
        private String hrefTarget;
        private String backgroundColor;
        private boolean hasInnerImage;

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getImageUrl() {
            return imageUrl;
        }

        public void setImageUrl(String imageUrl) {
            this.imageUrl = imageUrl;
        }

        public String getHref() {
            return href;
        }

        public void setHref(String href) {
            this.href = href;
        }

        public String getHrefTarget() {
            return hrefTarget;
        }

        public void setHrefTarget(String hrefTarget) {
            this.hrefTarget = hrefTarget;
        }

        public boolean isHasInnerImage() {
            return hasInnerImage;
        }

        public void setHasInnerImage(boolean hasInnerImage) {
            this.hasInnerImage = hasInnerImage;
        }

        public String getBackgroundColor() {
            return backgroundColor;
        }

        public void setBackgroundColor(String backgroundColor) {
            this.backgroundColor = backgroundColor;
        }
    }



}


